import { type IRes, chatHttp } from '@/utils/request';
import type { IGroupMemberParams, IGroupMember } from './type';

// 获取群聊成员信息（用于音视频通话）
export const getGroupMembers = (params: IGroupMemberParams) =>
	chatHttp.get<IRes<IGroupMember[]>>({
		url: `group/group_member/?group_id=${params.groupId}&room=${params.room}`
	});
